# INCOMPLETE
# This script is designed to copy release files from the working directory to
# a subdirectory in dist/ for distribution.

from __future__ import print_function

PROJECT_NAME = 'Kharlia'
SOLUTION_FILE_NAME = 'Kharlia.sln'

import datetime
import os

def make_dist():
    # Check if we're in the solution root directory
    if not os.access(SOLUTION_FILE_NAME, os.F_OK):
        raise RuntimeError('dist script must be run from the same directory as solution')
    # Get current timestamp with dashes
    cts = datetime.datetime.today().strftime('%Y-%m-%d %H-%M-%S %f')
    # Create output directory
    outpath = os.path.join('dist', '{0} {1}'.format(PROJECT_NAME, cts))
    #os.makedirs(outpath)
    print('outpath:', outpath)

if __name__ == '__main__':
    make_dist()
